using FlowCanvas;
using FlowCanvas.Nodes;
using UnityEngine;
using Yoozoo.Gameplay.Liberty.AI;
using Yoozoo.Gameplay.Liberty.PlayerController;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    public class GetPlayerController : PureFunctionNodeBase
    {
        protected override void OnRegisterPorts(FlowNode node)
        {
            node.AddValueOutput<PlayerControlModeMgr>("PlayerController", () =>
            {
                return LibertyAIUtils.PlayerController;
            });
            
            node.AddValueOutput<GameObject>("GameObejct", () =>
            {
                return LibertyAIUtils.PlayerController.gameObject;
            });
        }
    }
}